import request from '../../utils/request'

export default {
    show: (id, config) => request.get('/coupons/frame/' + id, config),
    isGot: (id, config) => request.get('/coupons/frame/' + id + '/is_got', config),
    take_coupons_frame: (data, config) => request.post('/coupons/frame/' + data.id + '/take', data, config),
    lister: (config) => request.get('/coupons', config),
    show_coupon: (id, config) => request.get('/coupons/' + id, config),
}